package com.raitcon.hibernate.bean;
// Generated 27/05/2014 07:54:56 AM by Hibernate Tools 3.2.1.GA

import java.util.List;
import org.apache.log4j.Logger;



public class MatriculaTemp   implements java.io.Serializable {

 protected static Logger log = Logger.getLogger(MatriculaTemp.class); 
  private Matricula matricula;
  private Long  dblNota1;
  private Long  dblNota2;
  private Long  dblNota3;
  private Long  dblNota4;
  private Long  dblNota5;
  private Long  dblNota6;
  private Long  dblNota7;
  private Long  dblNota8;
  private Long  dblNota9;
  private Long  dblNotaDiez;
  private Long  dblNotaOnce;
  private Long  dblNotaDoce;
  private Long  dblNotaTrece;
  private Long  dblNotaCatorce;
  private Long  dblNotaQuince;
  private Long  dblNotaDSeis;
  //ids al momento de actualizar el detalle registro.
  private Long  idNota1;
  private Long  idNota2;
  private Long  idNota3;
  private Long  idNota4;
  private Long  idNota5;
  private Long  idNota6;
  private Long  idNota7;
  private Long  idNota8;
  private Long  idNota9;
  private Long  idNotaDiez;
  private Long  idNotaOnce;
  private Long  idNotaDoce;
  private Long  idNotaTrece;
  private Long  idNotaCatorce;
  private Long  idNotaQuince;
  private Long  idNotaDSeis;
  //Nota Finales de trimestre
  private Long idNotaMensualProm;
  private Long etC1;
  private Long etC2;
  private Long etC3;
  
  
  private List<Matricula> matriculaList;

    public MatriculaTemp() {
    }

	
    /**
     * @param dblNota1 the dblNota1 to set
     */
    public void setDblNota1(Long dblNota1) {
        this.dblNota1 = dblNota1;
    }

    /**
     * @return the dblNota2
     */
    public Long getDblNota2() {
        return dblNota2;
    }

    /**
     * @param dblNota2 the dblNota2 to set
     */
    public void setDblNota2(Long dblNota2) {
        this.dblNota2 = dblNota2;
    }

    /**
     * @return the dblNota3
     */
    public Long getDblNota3() {
        return dblNota3;
    }

    /**
     * @param dblNota3 the dblNota3 to set
     */
    public void setDblNota3(Long dblNota3) {
        this.dblNota3 = dblNota3;
    }

    /**
     * @return the dblNota4
     */
    public Long getDblNota4() {
        
        if(dblNota3!=null && dblNota3!=-1)        
             this.dblNota4 =Math.round(new Double((((getDblNota1()!=null?getDblNota1():0)+(dblNota2!=null?dblNota2:0)+(dblNota3!=null?dblNota3:0))))/3);
        else
            this.dblNota4 =Math.round(new Double((((getDblNota1()!=null?getDblNota1():0)+(dblNota2!=null?dblNota2:0))))/2);
        return dblNota4;
    }

    /**
     * @param dblNota4 the dblNota4 to set
     */
    public void setDblNota4(Long dblNota4) {
        this.dblNota4 = dblNota4;
    }

    /**
     * @return the dblNota5
     */
    public Long getDblNota5() {
        return dblNota5;
    }

    /**
     * @param dblNota5 the dblNota5 to set
     */
    public void setDblNota5(Long dblNota5) {
        this.dblNota5 = dblNota5;
    }

    /**
     * @return the dblNota6
     */
    public Long getDblNota6() {
        return dblNota6;
    }

    /**
     * @param dblNota6 the dblNota6 to set
     */
    public void setDblNota6(Long dblNota6) {
        this.dblNota6 = dblNota6;
    }

    /**Long
     * @return the dblNota7
     */
    public Long getDblNota7() {
        return dblNota7;
    }

    /**
     * @param dblNota7 the dblNota7 to set
     */
    public void setDblNota7(Long dblNota7) {
        this.dblNota7 = dblNota7;
    }

    /**
     * @return the dblNota8
     */
    public Long getDblNota8() {
        if(dblNota7!=null && dblNota7!=-1)
            this.dblNota8 =Math.round(new Double(((dblNota5!=null?dblNota5:0)+(dblNota6!=null?dblNota6:0)+(dblNota7!=null?dblNota7:0)))/3);
        else
            this.dblNota8 =Math.round(new Double(((dblNota5!=null?dblNota5:0)+(dblNota6!=null?dblNota6:0)))/2);
        return dblNota8;
    }

    /**
     * @param dblNota8 the dblNota8 to set
     */
    public void setDblNota8(Long dblNota8) {
        this.dblNota8 = dblNota8;
    }

    /**
     * @return the dblNota9
     */
    public Long getDblNota9() {
        return dblNota9;
    }

    /**
     * @param dblNota9 the dblNota9 to set
     */
    public void setDblNota9(Long dblNota9) {
        this.dblNota9 = dblNota9;
    }

    /**
     * @return the dblNotaDiez
     */
    public Long getDblNotaDiez() {
        return dblNotaDiez;
    }

    /**
     * @param dblNotaDiez the dblNotaDiez to set
     */
    public void setDblNotaDiez(Long dblNotaDiez) {
        this.dblNotaDiez = dblNotaDiez;
    }

    /**
     * @return the dblNotaOnce
     */
    public Long getDblNotaOnce() {
       return dblNotaOnce;
    }

    /**
     * @param dblNotaOnce the dblNotaOnce to set
     */
    public void setDblNotaOnce(Long dblNotaOnce) {
        this.dblNotaOnce = dblNotaOnce;
    }

    /**
     * @return the dblNotaDoce
     */
    public Long getDblNotaDoce() {
        if(dblNotaOnce!=null && dblNotaOnce!=-1)
            this.dblNotaDoce =Math.round(new Double(((dblNota9!=null?dblNota9:0)+(dblNotaDiez!=null?dblNotaDiez:0)+(dblNotaOnce!=null?dblNotaOnce:0)))/3);
        else
            this.dblNotaDoce =Math.round(new Double(((dblNota9!=null?dblNota9:0)+(dblNotaDiez!=null?dblNotaDiez:0)))/2);
        return dblNotaDoce;
    }

    /**
     * @param dblNotaDoce the dblNotaDoce to set
     */
    public void setDblNotaDoce(Long dblNotaDoce) {
        this.dblNotaDoce = dblNotaDoce;
    }

    /**
     * @return the dblNotaTrece
     */
    public Long getDblNotaTrece() {
        return dblNotaTrece;
    }

    /**
     * @param dblNotaTrece the dblNotaTrece to set
     */
    public void setDblNotaTrece(Long dblNotaTrece) {
        this.dblNotaTrece = dblNotaTrece;
    }

    /**
     * @return the dblNotaCatorce
     */
    public Long getDblNotaCatorce() {
        return dblNotaCatorce;
    }

    /**
     * @param dblNotaCatorce the dblNotaCatorce to set
     */
    public void setDblNotaCatorce(Long dblNotaCatorce) {
        this.dblNotaCatorce = dblNotaCatorce;
    }

    /**
     * @return the dblNotaQuince
     */
    public Long getDblNotaQuince() {
        return dblNotaQuince;
    }

    /**
     * @param dblNotaQuince the dblNotaQuince to set
     */
    public void setDblNotaQuince(Long dblNotaQuince) {
        this.dblNotaQuince = dblNotaQuince;
    }

    /**
     * @return the dblNotaDSeis
     */
    public Long getDblNotaDSeis() {
        this.dblNotaDSeis =Math.round(new Double(((dblNotaTrece!=null?dblNotaTrece:0)+(dblNotaCatorce!=null?dblNotaCatorce:0)+(dblNotaQuince!=null?dblNotaQuince:0)))/3);
        return dblNotaDSeis;
    }

    /**
     * @param dblNotaDSeis the dblNotaDSeis to set
     */
    public void setDblNotaDSeis(Long dblNotaDSeis) {
        this.dblNotaDSeis = dblNotaDSeis;
    }

    /**
     * @return the matricula
     */
    public Matricula getMatricula() {
        return matricula;
    }

    /**
     * @param matricula the matricula to set
     */
    public void setMatricula(Matricula matricula) {
        this.matricula = matricula;
    }

    

    /**
     * @return the matriculaList
     */
    public List<Matricula> getMatriculaList() {
        return matriculaList;
    }

    /**
     * @param matriculaList the matriculaList to set
     */
    public void setMatriculaList(List<Matricula> matriculaList) {
        this.matriculaList = matriculaList;
    }

    /**
     * @return the dblNota1
     */
    public Long getDblNota1() {
        return dblNota1;
    }

    /**
     * @return the idNota1
     */
    public Long getIdNota1() {
        return idNota1;
    }

    /**
     * @param idNota1 the idNota1 to set
     */
    public void setIdNota1(Long idNota1) {
        this.idNota1 = idNota1;
    }

    /**
     * @return the idNota2
     */
    public Long getIdNota2() {
        return idNota2;
    }

    /**
     * @param idNota2 the idNota2 to set
     */
    public void setIdNota2(Long idNota2) {
        this.idNota2 = idNota2;
    }

    /**
     * @return the idNota3
     */
    public Long getIdNota3() {
        return idNota3;
    }

    /**
     * @param idNota3 the idNota3 to set
     */
    public void setIdNota3(Long idNota3) {
        this.idNota3 = idNota3;
    }

    /**
     * @return the idNota4
     */
    public Long getIdNota4() {
        return idNota4;
    }

    /**
     * @param idNota4 the idNota4 to set
     */
    public void setIdNota4(Long idNota4) {
        this.idNota4 = idNota4;
    }

    /**
     * @return the idNota5
     */
    public Long getIdNota5() {
        return idNota5;
    }

    /**
     * @param idNota5 the idNota5 to set
     */
    public void setIdNota5(Long idNota5) {
        this.idNota5 = idNota5;
    }

    /**
     * @return the idNota6
     */
    public Long getIdNota6() {
        return idNota6;
    }

    /**
     * @param idNota6 the idNota6 to set
     */
    public void setIdNota6(Long idNota6) {
        this.idNota6 = idNota6;
    }

    /**
     * @return the idNota7
     */
    public Long getIdNota7() {
        return idNota7;
    }

    /**
     * @param idNota7 the idNota7 to set
     */
    public void setIdNota7(Long idNota7) {
        this.idNota7 = idNota7;
    }

    /**
     * @return the idNota8
     */
    public Long getIdNota8() {
        return idNota8;
    }

    /**
     * @param idNota8 the idNota8 to set
     */
    public void setIdNota8(Long idNota8) {
        this.idNota8 = idNota8;
    }

    /**
     * @return the idNota9
     */
    public Long getIdNota9() {
        return idNota9;
    }

    /**
     * @param idNota9 the idNota9 to set
     */
    public void setIdNota9(Long idNota9) {
        this.idNota9 = idNota9;
    }

    /**
     * @return the idNotaDiez
     */
    public Long getIdNotaDiez() {
        return idNotaDiez;
    }

    /**
     * @param idNotaDiez the idNotaDiez to set
     */
    public void setIdNotaDiez(Long idNotaDiez) {
        this.idNotaDiez = idNotaDiez;
    }

    /**
     * @return the idNotaOnce
     */
    public Long getIdNotaOnce() {
        return idNotaOnce;
    }

    /**
     * @param idNotaOnce the idNotaOnce to set
     */
    public void setIdNotaOnce(Long idNotaOnce) {
        this.idNotaOnce = idNotaOnce;
    }

    /**
     * @return the idNotaDoce
     */
    public Long getIdNotaDoce() {
        return idNotaDoce;
    }

    /**
     * @param idNotaDoce the idNotaDoce to set
     */
    public void setIdNotaDoce(Long idNotaDoce) {
        this.idNotaDoce = idNotaDoce;
    }

    /**
     * @return the idNotaTrece
     */
    public Long getIdNotaTrece() {
        return idNotaTrece;
    }

    /**
     * @param idNotaTrece the idNotaTrece to set
     */
    public void setIdNotaTrece(Long idNotaTrece) {
        this.idNotaTrece = idNotaTrece;
    }

    /**
     * @return the idNotaCatorce
     */
    public Long getIdNotaCatorce() {
        return idNotaCatorce;
    }

    /**
     * @param idNotaCatorce the idNotaCatorce to set
     */
    public void setIdNotaCatorce(Long idNotaCatorce) {
        this.idNotaCatorce = idNotaCatorce;
    }

    /**
     * @return the idNotaQuince
     */
    public Long getIdNotaQuince() {
        return idNotaQuince;
    }

    /**
     * @param idNotaQuince the idNotaQuince to set
     */
    public void setIdNotaQuince(Long idNotaQuince) {
        this.idNotaQuince = idNotaQuince;
    }

    /**
     * @return the idNotaDSeis
     */
    public Long getIdNotaDSeis() {
        return idNotaDSeis;
    }

    /**
     * @param idNotaDSeis the idNotaDSeis to set
     */
    public void setIdNotaDSeis(Long idNotaDSeis) {
        this.idNotaDSeis = idNotaDSeis;
    }

    /**
     * @return the etC1
     */
    public Long getEtC1() {
        return etC1;
    }

    /**
     * @param etC1 the etC1 to set
     */
    public void setEtC1(Long etC1) {
        this.etC1 = etC1;
    }

    /**
     * @return the etC2
     */
    public Long getEtC2() {
        return etC2;
    }

    /**
     * @param etC2 the etC2 to set
     */
    public void setEtC2(Long etC2) {
        this.etC2 = etC2;
    }

    /**
     * @return the etC3
     */
    public Long getEtC3() {
        return etC3;
    }

    /**
     * @param etC3 the etC3 to set
     */
    public void setEtC3(Long etC3) {
        this.etC3 = etC3;
    }

    /**
     * @return the idNotaMensualProm
     */
    public Long getIdNotaMensualProm() {
        return idNotaMensualProm;
    }

    /**
     * @param idNotaMensualProm the idNotaMensualProm to set
     */
    public void setIdNotaMensualProm(Long idNotaMensualProm) {
        this.idNotaMensualProm = idNotaMensualProm;
    }

   

}


